xml format error tag are numbered

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
richard

xml format error tag are numbered

Post 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
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post 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.
Post Reply