473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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

Aug 3 '07 #1
2 1658
go************@gmail.com wrote:
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.
It sounds like what you really need is none of that at all, but a simple
content management system (CMS). There are dozens of these (leaving
aside the corporate-level ones which cost 000s), and many of them are
Open Source. You can even use a blog-like system to achieve this.

What you're doing is teaching yourself XML and related techniques --
which in itself is A Good Thing -- but not doing what your friend asked
and making them a web site :-)

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Aug 4 '07 #2
Peter Flynn wrote:
What you're doing is teaching yourself XML and related techniques --
which in itself is A Good Thing -- but not doing what your friend asked
and making them a web site :-)
Good point. Focus on the goal, then pick the tools to suit the goal...
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Aug 4 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joshua Beall | last post by:
Hi All, I have a task that should be very simple but I'm running into trouble. All I want to do is query a document using XPath, and save the resulting XML in a string. Here's that I am trying...
5
by: gene.ellis | last post by:
Hello everyone, I am really having a lot of trouble understanding the DOM and I doing something quite basic. I need to the DOM (in PHP 5) to modify an XML file. For example the XML basically...
19
by: Alex Mizrahi | last post by:
Hello, All! i have 3mb long XML document with about 150000 lines (i think it has about 200000 elements there) which i want to parse to DOM to work with. first i thought there will be no...
5
by: Mike McGavin | last post by:
Hi everyone. I've been trying for several hours now to get minidom to parse namespaces properly from my stream of XML, so that I can use DOM methods such as getElementsByTagNameNS(). For some...
14
by: hgraham | last post by:
Hi, I'm trying to understand how to work the dom, and all I'm trying to do is insert a link right before another link in the html based on it's href value. This isn't a real world example - I'm...
10
by: Daz | last post by:
Hi everyone. This might be a straight forward question, but when I open the DOM inspector inside of Firefox, I see that almost every DOM element seems to have a textNode above it. When I try to...
2
by: Louis | last post by:
Please help..... I am starting to learn using javascript on DOM. One of the first things I tested was listing all the child nodes from an element. Like -> *html code: <div id="pagetitle">...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
9
by: Lie | last post by:
Why this generates AttributeError, then not? Python 2.5.2 (r252:60911, Apr 21 2008, 11:17:30) on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.