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

I want to put prefix a node with "w"

Hi,
I need to put prefixed nodes in the document like <w:footnotes ...>...</w:footnotes>.
i tried providing the prefix all the ways possible like...
1)
XmlElement RootElement = masterFootNoteDocument.CreateElement("w", "footnotes", childDocument.NamespaceURI);

2)
RootElement.Prefix = "w";

3)
XmlElement RootElement = masterFootNoteDocument.CreateElement("w:footnotes" , childDocument.NamespaceURI);

but didn't work.

Am i missing any other property or is there any thing wrong in the code.
Jan 29 '08 #1
2 820
mzmishra
390 Expert 256MB
This thread may help you
http://www.thescripts.com/forum/thread609726.html
Jan 29 '08 #2
Thanx for early response Mishra.
the namespace uri returned was null string. may thats d reason.
Jan 29 '08 #3

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

Similar topics

6
by: Sugapablo | last post by:
Lets say I have several DIVs, each with an ID like X1, X3424, X234, etc. I'd like to render all elements that have an ID that starts with "X" invisible (for example), regardless of what followed...
5
by: John | last post by:
Hi, I have an application which is built from many modules. I re-use the modules in different applications. I'd like to have each of my modules implement a "SaveState()" method. The method...
4
by: Thiru | last post by:
Hi, Greetings to All. I have encountered a problem while working on DB2 Governer. I build my configuration file as below.(Just for practise) desc "Restrict the Unit of Work to be less then 1...
2
by: Tom | last post by:
I'm getting this error when I try to pass a structure to a dll. An unhandled exception of type 'System.ArgumentException' occured in Test1.exe Additional Information: Type could not be marshaled...
8
by: Don Wash | last post by:
Hi There! I'm using VB.NET to create a TreeView application and unfortunately I could not find "Key" property in Node items of the TreeView. We used to have "Key" property in TreeView node...
1
by: db2udbgirl | last post by:
Env : DB2 UDB 8.2 / AIX 5.3 When I try to use some DB2 Utilities against a partitioned table which is not defined on a particular node (Node 0 in this case) I'm getting this error. ...
3
by: ano | last post by:
Hi, Anyone knows how to get "xmlns" value from XML file? For example, how to check that this xml file has a xmlns or not? Or how to read the xmlns value? <bookstore...
13
by: Steve | last post by:
Hi; A friend of mine is publishing a book that includes 3000 citations, many with urls. When he made his bibliography he chopped off the "http://"s off of his urls. I wrote a program to...
0
by: seasonmmclane | last post by:
I am clueless... Here is my code: Private Sub genCodeDynamic(ByVal nIn As XmlNode, ByRef nOut As XmlNode, ByVal docOut As XmlDocument, _ ByVal stopAtNode As XmlNode, ByVal dr As DataRow) ...
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
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...
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
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...

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.