Jump to content
Sign in to follow this  
Blinky

XML DOM Wrapper UDF Question

Recommended Posts

Blinky

Hello!

I`m doing a product database for my firm with an automatic upload of the product list in a XML format that my online shop works with.

i need help to find a way to modify a node value and ,from what i can make of it, i cant use the DOM Wrapper UDF to do this

or at least could some one provide me with a list of commands that a DOM object suports.(i`m not very good at java scripting)

i tryed the direct approach ( $objNode.nodeValue="value" ) and it doesnt work

this is a sample of the XML i`m working with , and i need to modify the value of the price tag of a specific product id

<?xml version="1.0" encoding="UTF-8"?>
<products>
<product>
  <id>1</id>
  <price>0.00</price>
</product>
<product>
  <id>2</id>
  <price>0.00</price>
  <available>1</available>
</product>
<product>
  <id>3</id>
  <price>0.00</price>
</product>
</products>

thanx in advance...

Share this post


Link to post
Share on other sites
StringingLong

Does this absolutely have to be with Windows and AutoIt?

If not, then use PHP and SimpleXml to do your processing.

Share this post


Link to post
Share on other sites
Blinky

i have already created my database with autoit and sqlite its verry hard for me now to recode every thing in php plus im a verry big fan of autoit.

of course i could regenerate the xml every time i modify the list of products

Share this post


Link to post
Share on other sites
ppinto

Good morning,

I think this topic is appropriate to ask a silly(?) doubt I have regarding the XML DOM wrapper:

- There is a xml file from the web which has around 11 mb, but I only want to fetch one specific node. Is it possible with the wrapper to fetch a specific node (through adding attributes to the URL), where I only download that specific node and not the entire file?

Kind regards,

Pedro

Edited by ppinto

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  

×