Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xml attributes
Message
From
07/03/2002 15:55:50
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00629655
Message ID:
00629866
Views:
13
>HI!, i have the follow text:
>
>

>
>but all the attributes are changing, the next time i obtain only the left attribute, exist a way to obtain the list of attributes for node in a DOM model?

Assuming there is more to your document, like a document root node, you can get a list of attributes for a node like this:

oAttList = myDoc.selectSingleNode("//Commandbutton").attributes

You can the parse the nodelist by:
FOR EACH loNode IN oAttList
     ? loNode.text     && returns just the value of the attribute
     ? loNode.xml      && returns the name and value:  left="10" 
ENDFOR
Hope this helps.
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Previous
Reply
Map
View

Click here to load this message in the networking platform