• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML, DOM, Javascript

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one please help meto do the following asap:
Develop a Website using Javascript, the DOM and XML. The site should read the catalog XML document (see cdcatalog.xml) from the W3CSchools webs-site examples and allow the user to interact with a page to hyperlink the document in one or any of the XML element fields. Namely, dynamically produce a document hyper-linked in one or more of the element tags at a time.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like a homework assignment to me.

When you state it all at once, it sounds complicated - so tackle it piece by piece with parts that can be tested independently.

Personally I would start by creating a class that can read the XML document into a DOM and provide for extracting the various fields in a convenient fashion.

Bill
 
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dolton,
Could you elaborate your requirements a little bit more?

Do you want to create a web page with a representation of the XML on the page and allow the user to add an url to an XML element and make the element a hyperlink? That's what I understood from your post. Also do you want to save this document with the added hyperlinks?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic