login about faq

Hello, I try to parse the attached XML, al fine, only the tag "Application" is invisible for all kinds of parsing. Any idea ? regards Rudolf

<application version="3" designtool="3.5.2" url="https://111.111.111.195/test" prepop="false" hwrenabled="true"> <name>Test name</name> <description>Test description</description> </application>

My code (xBase++ like VPF)


nNumChildren := oXML:NumChildren // 2 nAppChilds := oXML:NumChildrenHavingTag("Application") // 0

oFirst := oXML:FirstChild() nFirstChildren := oFirst:NumChildren // 0 cTag := oFirst:tag // name, is ok

oApp := oXml:FindChild("Application") // NULL ???

oRoot := oXML:GetRoot() nRootChildren := oRoot:NumChildren // 0 children ???

asked Sep 02 at 03:59

edv007's gravatar image

edv007
1


that xml you posted, has application as the root. the version, designtool, etc... are attributes. You can get the attribute from using the oXML:GetAttrValue(), there are other methods you can call too.

link

answered Sep 02 at 10:22

TracyP's gravatar image

TracyP
1062

edited Sep 02 at 10:59

Hello, many thanks ! now it is clear and working regards Rudolf

link

answered Sep 03 at 10:03

edv007's gravatar image

edv007
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×59

Asked: Sep 02 at 03:59

Seen: 167 times

Last updated: Sep 03 at 10:03

powered by OSQA