Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2005

Tip: Looking for answers? Try searching our database.

How to append a node with attribute

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Liu Feng - 31 Oct 2005 10:35 GMT
Hi,
How to append a node with attribute to DOM?
My schema also have the attribute, such as

<LKTestArea ID="1">abc</LKTestArea>

How do I append a new node?

Signature

Thanks,
LiuFeng
MSN Messenger: blindlf@hotmail.com

Greg S - 31 Oct 2005 11:05 GMT
I'm assuming you're talking about appending using code or script.

The only way I've been able to do it for schemas that I've built in
InfoPath, is to use the cloneNode(true) method on an existing node to make a
copy, then update the attribute(s), and append it to the parent. I haven't
been able to come up with any other way.

> Hi,
> How to append a node with attribute to DOM?
[quoted text clipped - 3 lines]
>
> How do I append a new node?
Liu Feng - 31 Oct 2005 12:27 GMT
Hi, Greg S
Thanks for you opinion, I work out it.

Signature

Thanks,
LiuFeng
MSN Messenger: blindlf@hotmail.com

I'm assuming you're talking about appending using code or script.

The only way I've been able to do it for schemas that I've built in
InfoPath, is to use the cloneNode(true) method on an existing node to make a
copy, then update the attribute(s), and append it to the parent. I haven't
been able to come up with any other way.

> Hi,
> How to append a node with attribute to DOM?
[quoted text clipped - 3 lines]
>
> How do I append a new node?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.