skibumm101 Posted June 11, 2007 Share Posted June 11, 2007 I have some XML (21 nodes with values) and am parsing it. here is the code thats giving me fits $node = _XMLGetChildNodes("Test_Case") $value = _XMLGetField("Test_Case") _ArrayDisplay($node,"NODE") _ArrayDisplay($value,"VALUE") The first array $node behaves as expected, it gives me an array of 21 values which are the node names. the second array $value gives me an array of 1 where all 21 values are stored in that cell is this expected behavior? Link to comment Share on other sites More sharing options...
skibumm101 Posted June 12, 2007 Author Share Posted June 12, 2007 since this got buried pretty fast im bumping it. Should i be asking this somewhere else? also since im a new in the forums, i hope bumping isn't a fopa Link to comment Share on other sites More sharing options...
/dev/null Posted June 12, 2007 Share Posted June 12, 2007 since this got buried pretty fast im bumping it. Should i be asking this somewhere else? also since im a new in the forums, i hope bumping isn't a fopayou could post your XML data, so we can verify what you are saying... __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
skibumm101 Posted June 12, 2007 Author Share Posted June 12, 2007 Here is my xml nothing fancy just nodes with data <?xml version="1.0" encoding="ISO-8859-1"?> <Test_Case> <id>Help - About ~ OK</id> <test_title>2</test_title> <test_duration>00:00</test_duration> <test_type>[None Selected]</test_type> <test_phase>[None Selected]</test_phase> <create_date>20070412</create_date> <create_time>16:58:18</create_time> <update_date>20070515</update_date> <update_time>08:44:21</update_time> <create_user_id>CGH</create_user_id> <update_user_id>JV</update_user_id> <rec_test_configs></rec_test_configs> <test_resources></test_resources> <prerequisites></prerequisites> <test_description><![CDATA[Click<br>cmdOk]]></test_description> <test_result></test_result> <notes1></notes1> <notes2></notes2> <external_link></external_link> <priority>2</priority> <requirement>3.5</requirement> </Test_Case> oÝ÷ Û +Áek ^²ÉrÚÞ¶ê籩ڮ¶²Â+ay§!^jÆéا¶®¶²¶¬yÊ'v«¯&®¶s`¢b33c·fÇVRÒõÔÄvWDfVÆBgV÷C²õFW7Eô66RgV÷C² finds all the correct values, but puts all values in element [1] I expect the _XMLGetField to return an array with each value an element But, maybe i am wrong in the expected behavior Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 12, 2007 Share Posted June 12, 2007 finds all the correct values, but puts all values in element [1] I expect the _XMLGetField to return an array with each value an element But, maybe i am wrong in the expected behavior You might want to post this to eltorro's topic for the XmlDomWrapper. He's been very responsive in that topic. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now