Sign in to follow this  
Followers 0
Minikori

XML Help

2 posts in this topic

#1 ·  Posted (edited)

Hello, I'm trying to make a database for MapleStory using xml files coming from the .wz files. But when I try to run the following:

#include <_XMLDOMWrapper.au3>
_XMLLoadXML(@DesktopDir & "\MapleStory\String.wz.xml")
$name = _XMLGetValue("Etc.img/Etc/4001257/name")
$desc = _XMLGetValue("Etc.img/Etc/4001257/desc")
MsgBox(0, $name, $desc)
It gives this error:

C:\Program Files (x86)\AutoIt3\Include\_XMLDOMWrapper.au3 (451) : ==> Error in expression.:
$objNodeList = $objDoc.documentElement.selectNodes ($strXPath)
$objNodeList = ^ ERROR

Anybody know why? Also, I can't really understand the code and function names in the XML UDFs, is there a function that will save a whole section/directory of an XML to an array? Thanks for any help.

Edited by Minikori

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites



Did you try putting a backslash or two in front of your queries? IT has to valid XPATH.

http://www.w3schools.com/xpath/default.asp

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0