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

xml:space attribute preserver whitespace

Hello:
I tried to attach a new node to the xml document.

Dim sonqattr As XmlAttribute = docxml.CreateAttribute("xml:space")
sonqattr.Value = "preserve"

However, I found that the xml: doesnot appear after I attached the childnode node successfully.
It only shows: space="preserve" as the attribute.
I would like to show xml:space="preserve"

IS there any one who had experiment with this?
Actually, I like to preserver the whitespace as I am adding the textboxes detail to the xml

Thanks for help.

Ray
Jul 21 '05 #1
0 1060

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

Similar topics

1
by: 5tein | last post by:
I mean, with XSL functions such as SELECT can I only refer to XML element values or can I somehow also refer to XML attribute values? Is there any way to refer to XML content based on attribute...
1
by: surflorida | last post by:
hello, I have two problems have I been hacking on for awhile looking in books and web: - getting the correct value of EMPTY emelement value: in my dtd I have !DOCTYPE foo [ <!ELEMENT foo...
1
by: qa4ever | last post by:
How long in number of characters can a XML attribute be maximum? E.g. <mystring>how many characters maximum can be here</mystring> If you answer something like; it can be as long as UTF-8 . Then...
3
by: schaf | last post by:
Hi ! I have a little question. With my XSL File I add additional XML-Tags to an existing XML-File. But I would like to use a xsl:variable for inserting a value into an additional xml-attribute. ...
4
by: smita | last post by:
Hi, I have an xml file as below <root> <table id =1> <user>abc</user> <age>25</age> </table> <table id = 2> <user>xyz</user>
0
by: Ray Cheung | last post by:
Hello: I tried to attach a new node to the xml document. Dim sonqattr As XmlAttribute = docxml.CreateAttribute("xml:space") sonqattr.Value = "preserve" However, I found that the xml: doesnot...
3
by: adgnews | last post by:
I have a problem converting a program from Vb.net VS2003 to VS2005. I process a xml-file with an inline schema. In 2003 no problem. In 2005 I have 2 problems: 1) BIG space="preserve" problem....
2
by: Lloyd Dupont | last post by:
I am "defining" an XML schema. In fact I'm not really writing any schema but I am writing an XML writer and reader for my data. It's all custom XML and I would like it to be XML tool friendly. ...
1
by: Ravi | last post by:
Hi, I want to use end line character('\n') in the XML Attribute like <message confirm=" This will kill your process . \n Are you sure to proceeed? "/> But in java xml processor, it is...
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: 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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.