AutoHotkey Community

It is currently May 26th, 2012, 4:43 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: March 30th, 2009, 2:31 pm 
Offline

Joined: March 23rd, 2009, 2:39 pm
Posts: 5
I have a problem to change a note in xml, but does not change others.
please show me how solve this problem


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2009, 2:55 pm 
Please show us your code.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 1st, 2009, 2:00 am 
Offline

Joined: March 23rd, 2009, 2:39 pm
Posts: 5
When I use the codeabove to edit the data in XMl file, XMl file's Structure was destroyed. I am a tyro in Ahk.Please help me solve this problem.Thanks
Code:
StringSplit, ETemArray, EditArrayInfo,`n, `r
  xpath_load(pb, "inforamation.xml")

   xpath(pb, "/inforamation/person[" . %RowSelect% . "]/Name/text()", ETemArray1)
   xpath(pb, "/inforamation/person[" . %RowSelect% . "]/Duration/text()", ETemArray2)
   xpath(pb, "/inforamation/person[" . %RowSelect% . "]/Address/text()", ETemArray3)
   xpath(pb, "/inforamation/person[" . %RowSelect% . "]/EndTime/text()", ETemArray4)

  xpath_save(pb, "inforamation.xml")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Miguel, notsoobvious and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group