![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to parse through a file and based on condition form another output file | sivasu.india | UNIX for Advanced & Expert Users | 6 | 02-28-2008 04:59 AM |
| Creation of output file from list of file | ganapati | Shell Programming and Scripting | 7 | 01-18-2008 07:55 PM |
| compare file size from a output file from a script | moustik | Shell Programming and Scripting | 7 | 11-07-2007 10:17 AM |
| iconv and xmllint | matrixmadhan | UNIX for Advanced & Expert Users | 3 | 10-06-2007 01:53 PM |
| appending to sed output of one file into the middle of file | go4desperado | Shell Programming and Scripting | 5 | 02-05-2007 02:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
xmllint output to a file
Hello All,
I have an XML file which has some errors in its tag definition according to an xsd. When i validate this xml file against an xsd, i wish to only take the errors in a file and not the complete xml. for eg. Raman.xml has some errors induced in it. RamanValidator.xsd holds the schema definition. upon running the following utility: xmllint --schema RamanValidator.xsd Raman.xml, i get this as output: ACT_D_03_07_08_T_12_41.xml:16: element CLI: Schemas validity error : Element 'CLI' [ST local, facet 'pattern']: The value '019145 58756' is not accepted by the pattern '[0-9]*'. ACT_D_03_07_08_T_12_41.xml:35: element BBProduct: Schemas validity error : Element 'BBProduct' [CT 'BBProductType']: The element content is not valid. ACT_D_03_07_08_T_12_41.xml:64: element CallingAndNetworkFeatures: Schemas validity error : Element 'CallingAndNetworkFeatures' [CT local]: The element content is not valid. ACT_D_03_07_08_T_12_41.xml:10022: element BBProduct: Schemas validity error : Element 'BBProduct' [CT 'BBProductType']: The element content is not valid. ACT_D_03_07_08_T_12_41.xml fails to validate Now, i want this output only in a file. Please help... Anticipating.... |
![]() |
| Bookmarks |
| Tags |
| xml |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|