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

get a XalanDocument

Hi, I'm trying to implement an extension function for Xalan-C that
returns a Nodeset. I've figured out most of the stuff I need to do.

I think I need to use the function createElement from a XalanDocument.
My problem is I don't know how to get hold of a XalanDocument.

I tried using getOwnerDocument but it returns null. I though About
using DOMImplementation::getImplentation()->createDocument() from
xerces and to somehow wrap this in a Xalan class but it does not seems
right.

Someone know how get hold of a XalanDocument in the context of an
Extension function?

Mar 8 '06 #1
2 1062
he**********@gmail.com wrote:
I tried using getOwnerDocument but it returns null.


Note that the W3C DOM's getOwnerDocument operation returns null if the
node is a Document node. (Yes, I objected at the time.) Check the
nodetype first, or if this returns null, and if it tells you that you
already have a Document node use it as it stands...
--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Mar 8 '06 #2
Ahh. Thanks for your help. It got me really excited for a moment.
Though once I tried this and tried to call createElement on this
wonderful document I get this error "NOT_SUPPORTED_ERR". Well, seems
like I the version I have does not support creation of element... Well,
at least I tried..

Mar 9 '06 #3

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

Similar topics

0
by: Francesc Guim Bernat | last post by:
Dear colleagues, i'm getting in troubles using one XML library with Visual Studio .NET and Xerces with Xalan. (Xercer 2.4 and Xalan 1.7) When i execute the code i get the next run time error: ...
1
by: Francesc Guim Bernat | last post by:
Dear colleagues, i'm getting in troubles using one XML library with Visual Studio .NET and Xerces with Xalan. When i execute the code i get the next run time error: "Run-Time Check Failure #2...
3
by: Avalon1178 | last post by:
Hi, I recently downloaded the xalan-c source code in http://mirrors.ccs.neu.edu/Apache/dist/xml/xalan-c I followed the instructions from the apache site on how to build it (I already have...
0
by: krishna.voleti | last post by:
Upgrading Xalan from 1.7 to 1.9 and Xerces from 2.4 to 2.7 on HP-UX 11i. I am using aCC: HP ANSI C++ B3910B A.03.63. Getting the following error during compilation. /usr/ccs/bin/ld:...
2
by: Vikas Taleg | last post by:
My application is using Xerces 2_8_0 and I am using VC++ 2008. While compiling I am getting following link error. 1>libgcrypt.dll.a(d000183.o) : warning LNK4078: multiple '.text' sections found...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.