473,385 Members | 1,397 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,385 software developers and data experts.

ECS and nodeTypes

I am creating an XML document using the Element Construction Kit API. The document comes out looking fine, however when I go to read a node's text with Javascript I find out that they are all element nodes.

How can I change these element nodes to text nodes using ECS? The only "add" option I see is .addElement(). Would I somehow have to go and define new elements and set them to be text nodes that way?
Oct 31 '07 #1
1 1082
Never mind, after some deeper looking I found that .addElement() does indeed create a text node if only a string is used as an argument.
Oct 31 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Thomas -Balu- Walter | last post by:
Hello everyone, first my question in short - I am looking for a working replacement of the following function for Mozilla (this was written for IE): // encloses the selected area into starting...
2
by: prashantpawar | last post by:
I want to know that how can I process the whole text of the HTML document using just the javascript(for example I wanna convert the whole text as well as HTML to Uppercase). I know one way of...
1
by: davis | last post by:
Hello, I am working in .Net C# and have an xml file similar to the one below. I have tried using a DataSet but get the error "The same table (Gid) cannot be the child table in two nested...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
5
by: Maya | last post by:
I'm trying to get a dll out of compiling the following code but I get error: "function-style initializer appears to be a function definition" Although i dont have C++ experience I thought i...
0
by: Sam | last post by:
Hello, does anyone know if there is a known bug registering an extension for MMC 2.0 (or above)? I'm referring to the msdn article on http://msdn2.microsoft.com/en-us/library/aa815158.aspx to...
5
by: tht | last post by:
How can I search text and count its appearance inside a webpage? I'll try NodeIterator and NodeFilter but there's an error "NodeFilter is undefined".
5
by: paragpdoke | last post by:
Hello Everyone. I'm new to XSL and couldn't get something to work. Sample XML excerpt: <root> <ObjectTemplate> <NodeType1></NodeType1> <NodeType2></NodeType2> </ObjectTemplate> <Object>
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
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.