Extra content at the end of document - XML PArsing Error -
Extra content at the end of document - XML PArsing Error -
i wrote bit of xml first try, somehow gives error. have read other post on topic tell have 1 root parent; in case catalog. , gave attributes single name without white spaces. idea's problem be?
any help appreciated.
<?xml version="1.0"?> <catalog> <enginepart1> <petroltype>diesel</petroltype> <generalinfo> <carbrand>alfa romeo</carbrand> <noofcyl>4</noofcyl> <boredia>69.6mm</boredia> <capacity>1,248cc</capacity> </generalinfo> <image> <file type="png">capture.png3.png</file> </image> <linerkit> <referenceno /> </linerkit> <pistonrings> <name>pkar406963db</name> <referencenumber> <name1>k-40659600</name1> <name2>n-8742560000</name2> </referencenumber> </pistonrings> <pistonset> <name>ptar406963db</name> <referenceno /> <description> <name1>alfin , oil gallery</name1> <name2>skirt mos2 treated fits tapered con. rod</name2> </description> <piston> <length>62.5</length> <comp>40.5</comp> <height1>-6</height1> <height2>-12.3</height2> </piston> <pin> <diameter>23.0</diameter> <length>57.0</length> </pin> </pistonset> <ringsset> <name>prar406961d</name> <referenceno> <name1>a-r66830</name1> <name2>g-0813760000</name2> <name3>k-800056240000</name3> <name4>m-01004n0</name4> </referenceno> <description /> <rings> <top>2.0</top> <2nd>1.5</2nd> <oil>2.0</oil> </rings> </ringsset> <cylliner> <name></name> <referenceno /> <description /> <linersleeve> <lenght /> <outsidediameter /> <flangediameter /> <flangedepth /> </linersleeve> </cylliner> </enginepart1> </catalog>
you're problem <2nd>
tag on line 54. tag names cannot start number.
here's handy tool identifying source of problems in xml: http://www.w3schools.com/xml/xml_validator.asp
for future reference, xml elements must follow these naming rules:
names can contain letters, numbers, , other characters names cannot start number or punctuation character names cannot start letters xml (or xml, or xml, etc) names cannot contain spaces xml
Comments
Post a Comment