Click here to Skip to main content
15,915,734 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: XML DOM insertBefore() Method Pin
George L. Jackson12-Jun-09 2:23
George L. Jackson12-Jun-09 2:23 
QuestionHow to modify XML file's Element and Attribute copying from another file using C# Pin
Nikkiee11-Jun-09 13:45
Nikkiee11-Jun-09 13:45 
QuestionXML/XSL Html table trouble Pin
Brian_Mitchell10-Jun-09 22:50
Brian_Mitchell10-Jun-09 22:50 
AnswerRe: XML/XSL Html table trouble Pin
George L. Jackson11-Jun-09 14:02
George L. Jackson11-Jun-09 14:02 
AnswerRe: XML/XSL Html table trouble Pin
Stuart Dootson11-Jun-09 22:58
professionalStuart Dootson11-Jun-09 22:58 
QuestionSerialization Invalid cast exception Pin
miniThomas10-Jun-09 20:39
miniThomas10-Jun-09 20:39 
AnswerCross Posted Pin
led mike11-Jun-09 4:39
led mike11-Jun-09 4:39 
QuestionPreserving white space in attribute values. (using MSXML) Pin
Maximilien9-Jun-09 7:25
Maximilien9-Jun-09 7:25 
Howdy'

In one of our data XML files, we need to have attribute values preserve white space at the end.

For example :

 <!--  without space -->
<MyTag MyAttribute="a value" />


 <!--  with space -->
<MyTag MyAttribute="a value " />


Are two different attribute values.

I tried using the preserve white space attribute

pXMLDoc->preserveWhiteSpace = VARIANT_TRUE; 


but that completely craps out the parsing of the file, for example, sometimes (well, always)
I get the wrong number of items in a node list (IXMLDOMNodeListPtr)

for example, in the following snippet, when preserveWhiteSpace is FALSE, the list count is 2 and when preserveWhiteSpace is TRUE, the list count if 5 (!)

<MESSAGE_LIST>
  <MESSAGE Id="10" Type="Info">
    <FRENCH>Message 10</FRENCH>
  </MESSAGE>
  <MESSAGE Id="11" Type="Info">
    <FRENCH>Message 11</FRENCH>
  </MESSAGE>
</MESSAGE_LIST>


Is there something I can do to MSXML to have the parsing behaviour that I want ? i.e. read significant spaces from an attribute value.

Thanks for any help, tips or hints.

Max.

This signature was proudly tested on animals.

AnswerRe: Preserving white space in attribute values. (using MSXML) Pin
Stuart Dootson9-Jun-09 13:44
professionalStuart Dootson9-Jun-09 13:44 
GeneralRe: Preserving white space in attribute values. (using MSXML) [modified] Pin
Maximilien10-Jun-09 3:26
Maximilien10-Jun-09 3:26 
QuestionXML / XSL Substring Pin
Brian_Mitchell8-Jun-09 6:16
Brian_Mitchell8-Jun-09 6:16 
AnswerRe: XML / XSL Substring Pin
Stuart Dootson8-Jun-09 23:10
professionalStuart Dootson8-Jun-09 23:10 
QuestionCSS... Pin
Jamal Abdul Nasir8-Jun-09 3:11
Jamal Abdul Nasir8-Jun-09 3:11 
AnswerRe: CSS... Pin
Christian Graus8-Jun-09 18:08
protectorChristian Graus8-Jun-09 18:08 
GeneralRe: CSS... Pin
Stuart Dootson8-Jun-09 22:27
professionalStuart Dootson8-Jun-09 22:27 
GeneralRe: CSS... Pin
Christian Graus9-Jun-09 11:17
protectorChristian Graus9-Jun-09 11:17 
GeneralRe: CSS... Pin
Stuart Dootson9-Jun-09 13:02
professionalStuart Dootson9-Jun-09 13:02 
AnswerRe: CSS... Pin
Stuart Dootson8-Jun-09 22:25
professionalStuart Dootson8-Jun-09 22:25 
GeneralRe: CSS... Pin
Jamal Abdul Nasir2-Feb-10 7:58
Jamal Abdul Nasir2-Feb-10 7:58 
QuestionAnother boring XML question. URGENT Pin
Etienne_1237-Jun-09 6:15
Etienne_1237-Jun-09 6:15 
AnswerRe: Another boring XML question. URGENT Pin
Christian Graus8-Jun-09 18:07
protectorChristian Graus8-Jun-09 18:07 
GeneralRe: Another boring XML question. URGENT Pin
Etienne_1238-Jun-09 23:00
Etienne_1238-Jun-09 23:00 
GeneralRe: Another boring XML question. URGENT Pin
Christian Graus9-Jun-09 14:54
protectorChristian Graus9-Jun-09 14:54 
AnswerRe: Another boring XML question. URGENT Pin
kamagra10-Jun-09 2:10
kamagra10-Jun-09 2:10 
QuestionHow do I specify a new Uri path? Pin
Etienne_1234-Jun-09 4:56
Etienne_1234-Jun-09 4:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.