• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Inserting an XML node to a specific location

Explorer ,
Oct 03, 2006 Oct 03, 2006

Copy link to clipboard

Copied

I have an xml page with the structure shown below:

<Products>
<Category label="jewelry">
<Designer>
<Title>Designer Name Here</Title>
<Product>
<LargeView>image path</LargeView>
<SmallView>image path</SmallView>
</Product>
</Designer>
</Category>
</Products>

Recieving the label value, designers name and the image URL for both large and small images from a form how do I add a new product element with LargeView and SmallView childern to the specified designer under the specified category ?

Thanks,

Jason
TOPICS
Advanced techniques

Views

233

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2006 Oct 10, 2006

Copy link to clipboard

Copied

LATEST
Jason,

You'll have to use the xmlSearch function after loading your XML to obtain the proper nodes and update them. Your XML is lacking some sort of unique identifier at the product level. You're not going to be able to update the LargeView and SmallView nodes for a given Product w/out being able to identify which product you should update for a given designer.

-Tim

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation