Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-09

XMLcfg question

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

I'm working with XMLcfg to do read and write to XML files. I want to extract data from the following XML file where element name is "second", how can I achieve that??

Darius

<CONFIG>
<mydat name="test">
<details name="details">

<element name="first">
<description>second description</description>
</element>

<element name="second">
<description>second description</description>
</element>

</details>
</mydat>
</CONFIG>

Sebastian Günther
to Unknown author
I'm working with XMLcfg to do read and write to XML files. I want to extract data from the following XML file where element name is "second", how can I achieve that??

You cannot.

Perhaps the XPath implementation can fulfil your requirements better.

- Sebastian

Thomas Zastrow
to Sebastian Günther
Sebastian Günther wrote 14 lines
schrieb: >I'm working with XMLcfg to do read and write to XML files. I want to >extract data from the following XML file where element name is "second", >how can I achieve that?? > > You cannot. Perhaps the XPath implementation can fulfil your requirements better.

You mean xpath.pp??? Hu, haven't seen that yet ... are there any documentation / examples for using XPath?

Greetings,

Tom

--------------------- http://www.thomas-zastrow.de
Sebastian Günther
to Thomas Zastrow
You mean xpath.pp???

yes

Hu, haven't seen that yet ... are there any documentation / examples for using XPath?

not really, as it follows the official W3C specification quite closely

Regards,
Sebastian