How to get whitespace in xml
-
Hi all. I am using dateset and writing the contents to xml..If there are no values to be written to xml...I want the whitespace in xml.... If i am leaving space..i.e ex string acl = " " ...in this way.. it is giving as.. .. i want is .. any help.. thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
-
Hi all. I am using dateset and writing the contents to xml..If there are no values to be written to xml...I want the whitespace in xml.... If i am leaving space..i.e ex string acl = " " ...in this way.. it is giving as.. .. i want is .. any help.. thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
You can declare a symbol for your whitespace, something like: "thisisawhitespace" or "nonblankspace" or ...
While (true) { Human.isLearnable = true; }
-
You can declare a symbol for your whitespace, something like: "thisisawhitespace" or "nonblankspace" or ...
While (true) { Human.isLearnable = true; }
-
I am sorry i dint got u.. u mean to say.. string acl = "or"..
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
string acl = "thisisawhitespace"; or string acl = "nonblankspace"; or Something that you can recognize it as whitespace... Seems forum couldn't show my post correctly, my pleasure :laugh:
While (true) { Human.isLearnable = true; }
-
string acl = "thisisawhitespace"; or string acl = "nonblankspace"; or Something that you can recognize it as whitespace... Seems forum couldn't show my post correctly, my pleasure :laugh:
While (true) { Human.isLearnable = true; }
Pedram Behroozi wrote:
string acl = "thisisawhitespace"; or string acl = "nonblankspace"; or
I tried both.. but i am getting as
nonblankspace and
thisisawhitespacesorry...
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
modified on Wednesday, October 8, 2008 3:04 AM
-
Pedram Behroozi wrote:
string acl = "thisisawhitespace"; or string acl = "nonblankspace"; or
I tried both.. but i am getting as
nonblankspace and
thisisawhitespacesorry...
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
modified on Wednesday, October 8, 2008 3:04 AM
When the value of a node becomes " " in XML files, you have but if it has a value it seems like YourValue so if you don't want to have in your XML file, try putting a Value in it as a WhiteSpace value, Something like values I said before or anything else and while you're reading values when you reach the "thisisawhitespace" or "nonblankspace" or ... you can understand that this is a WhiteSpace, Maybe there's some other ways to have but unfortunately I don't know anything about them. While (true) { Human.isLearnable = true; }
-
Pedram Behroozi wrote:
string acl = "thisisawhitespace"; or string acl = "nonblankspace"; or
I tried both.. but i am getting as
nonblankspace and
thisisawhitespacesorry...
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
modified on Wednesday, October 8, 2008 3:04 AM
Hey, tick the "Ignore HTML tags in this message (good for code snippets)" check box. :doh:
While (true) { Human.isLearnable = true; }
-
When the value of a node becomes " " in XML files, you have but if it has a value it seems like YourValue so if you don't want to have in your XML file, try putting a Value in it as a WhiteSpace value, Something like values I said before or anything else and while you're reading values when you reach the "thisisawhitespace" or "nonblankspace" or ... you can understand that this is a WhiteSpace, Maybe there's some other ways to have but unfortunately I don't know anything about them. While (true) { Human.isLearnable = true; }
As far as I know, if you are getting the situation as described by Pedram, from a programming point of view there should be no problem as they are equivilent, but if you need to preserve the spaces have a look at xml:space="preserve" Alternatively, is it that your dataset has nulls in some fields and does not create the elements/attributes at all?
Bob Ashfield Consultants Ltd
-
As far as I know, if you are getting the situation as described by Pedram, from a programming point of view there should be no problem as they are equivilent, but if you need to preserve the spaces have a look at xml:space="preserve" Alternatively, is it that your dataset has nulls in some fields and does not create the elements/attributes at all?
Bob Ashfield Consultants Ltd
-
Hi all. I am using dateset and writing the contents to xml..If there are no values to be written to xml...I want the whitespace in xml.... If i am leaving space..i.e ex string acl = " " ...in this way.. it is giving as.. .. i want is .. any help.. thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
I use an attribute:
<PUlat Align="right" Hide="false" **Null="true"** />
then if I use XSLT to transform the XML to HTML I can insert a non-breaking space in place of the null.