i am working on a tool creation. i need your help to complete that. could you please help me ? my task is simple! i should have all the application name in one node and the location and exe of that application should be in its child node. how can i create the XML for 35 to 90 applications? also how can i read that XML attributes thrioguh my code to shows in array?
I've tried some of the examples but I keep getting a "-1". I don't know anything about XML structures and so I don't know what the <OBT_WF_RUN_ID> element is in order to know which function(s) within the XMLDomWrapper I should use in order to determine the value of the <OBT_WF_RUN_ID> element. So, I was hoping for some direction.
Since I don't need to loop through the entire document enumerating values, I just need to obtain this one value - I've found it difficult to figure out how to do this from the many examples in this message thread.
First, don't make our lives hard by posting incomplete stuff that we have to edit just to see what you're talking about. It only took adding two lines to your partial XML example to make it complete. Just put this at the end:
Now it's a complete XML file we can work with.
Now, on closer inspection you get some sympathy because this involves a topic that makes my pin feathers hurt: XPath query with an un-named default namespace. Ref: KB288147 Evil stuff.
If there is a defined namespace in your scope, then it MUST be explicitly named in the XPath query. The problem is the default namespace has no name. You still can't just leave it off, it MUST be used in XPATH. So at the document object in the MSXML DOM, you have to set the property for "SelectionNamespaces" with a usable name, and the exact same URI as the default. That is accomplished by this line:
<!-- EXAMPLE: Ogg Vorbis stream from standard input WITHOUT reencoding This example streams an Ogg Vorbis stream from standard input (stdin.) Since ezstream will not be doing any reencoding, the resulting stream format (quality/bitrate, samplerate, channels) will be of the respective input stream. -->
<url><a href='http://localhost:8000/vorbis.ogg</url>' class='bbc_url' title='External link' rel='nofollow external'>http://localhost:8000/vorbis.ogg</url></a>
<!-- Important: For streaming from standard input, the default for continuous streaming is bad. Set <stream_once /> to 1 here to prevent ezstream from spinning endlessly when the input stream stops: -->
<!-- The following settings are used to describe your stream to the server. It's up to you to make sure that the bitrate/quality/samplerate/channels information matches up with your input stream files. -->
<svrinfourl><a href='http://www.oddsock.org</svrinfourl>' class='bbc_url' title='External link' rel='nofollow external'>http://www.oddsock.org</svrinfourl></a>
<svrinfodescription>This is a stream description</svrinfodescription>
<!-- Allow the server to advertise the stream on a public YP directory: -->
Sorry but I can't read the "url" value... Any ideas?
Greetings. I am hoping someone can help me parse through my XML. I have reviewed the examples in this thread but still dont understand the whole attribute structures. Here is what I have so far:
Example of XML File is attached.
I am trying to capture the value of <is_hidden>false</is_hidden> as a variable from the node? control type ="ADVTEXTBOX_CTRL" where the element ID is user_id. I am suspecting I missing a whole lot in relation to nodes and such.
Here is my sample code:
#include <_XMLDomWrapper.au3> $sXML_File = "C:\File.xml" _XMLFileOpen($sXML_File) If _XMLFileOpen($sXML_File) Then $sVer = _XMLGetAttrib('./config/control/advtextbox_ctrl', 'is_hidden') MsgBox(1, "Test", $sVer,"") ;ConsoleWrite($sVer & @LF) EndIf