Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML DOM: I'm doing it all wrong, right?

From: goodstufffilms@-----.---
To: NULL
Date: 8/3/2007 2:35:00 PM

Story: (adds extra flavor)

   I'm not much of a pro at web design, but I made a site for myself
and som
eone noticed and asked me to make a site for their organization.
Usually I
use just html and JavaScript, but they want to be able to edit their
site wi
thout having to wade through 3 feet of my enigmatic code.  I'm
guessing PHP
is the ideal solution, but I managed to turn 2 weeks into 3 days.  A
friend
I work with recommended I implement XML DOM.
   I've been researching, copy/pasting code, and exhausting all sorts
of opt
ions and ultimately my ignorance prevails and I am unable to get the
results
 I crave.

The Setup: (think mood lighting)

   So far I've used PowerPoint, Paint, and Notepad...  Yes, I know the
tools o
f a true master (except not) ...to create a website without any
information on
 it.  Sort of a skeleton if you will.  I've been searching for a way
to read
 in data from an xml file and so far the best I can get, calling a
JavaScrip
t function: loadXMLDoc(), is a read-in of a block of text with no
preservati
on of extra spaces or returns.

Questions: (No it's not just you, these are stupid)

What function or code should I use to retrieve data from a .txt
or .xml file
?
Is it easy preserve html code applied to the text if it has been read
this w
ay (such as a link)?
Lastly are any sites you could point me at that have a few examples of
what
I'm trying to do?

Thanks for reading,
-Andrew



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent