Page 1 of 1

xml format error tag are numbered

Posted: Sun Sep 12, 2004 3:43 am
by richard
am i missing something or is the xml output wrong!!

The xml output by textpipe pro 7.0.7 is like this

Code: Select all


<?xml version="1.0" standalone="yes" ?>
<!-- generator="TextPipe Pro 7.0.7" -->
<!-- companyURL="www.crystalsoftware.com.au" -->

<!-- event="DTD start" -->
<!DOCTYPE lines [
  <!ELEMENT lines (line*)>
  <!ELEMENT line (field1, field2, field3)>
  <!ELEMENT field1 (#PCDATA)>
  <!ELEMENT field2 (#PCDATA)>
  <!ELEMENT field3 (#PCDATA)>
]>
<!-- event="DTD end" -->

<lines>

<line number="1">
  <field1>row1</field1>
  <field2>data1</field2>
  <field3>data3</field3>
</line>
<line number="2">
  <field1>row2</field1>
  <field2>data2</field2>
  <field3>data4</field3>
</line>
<line number="3">
  <field1>row3</field1>
  <field2>data3</field2>
  <field3>data5</field3>
</line>

</lines>
when it should be

Code: Select all

<?xml version="1.0" standalone="yes" ?>
<!-- generator="TextPipe Pro 7.0.7" -->
<!-- companyURL="www.crystalsoftware.com.au" -->

<!-- event="DTD start" -->
<!DOCTYPE lines [
  <!ELEMENT lines (line*)>
  <!ELEMENT line (field1, field2, field3)>
  <!ELEMENT field1 (#PCDATA)>
  <!ELEMENT field2 (#PCDATA)>
  <!ELEMENT field3 (#PCDATA)>
]>
<!-- event="DTD end" -->

<lines>

<line>
  <field1>row1</field1>
  <field2>data1</field2>
  <field3>data3</field3>
</line>
<line>
  <field1>row2</field1>
  <field2>data2</field2>
  <field3>data4</field3>
</line>
<line>
  <field1>row3</field1>
  <field2>data3</field2>
  <field3>data5</field3>
</line>

</lines>
Am I missing something?

The help file shows the xml correctly

Posted: Tue Sep 14, 2004 10:15 am
by DataMystic Support
There is nothing wrong with this XML.

We added the line attribute to help identify individual records. It should cause no problems at all to any correct XML processor.