Re: [libxml++] ignore empty text nodes



Hi,

>
> Yes. I guess you are doing that somehow anyway during your "merge" of
> two documents.

Actually I am using import_node().


> I guess I'd accept a patch that adds an
> Element::remove_empty_text_nodes() method. The you could call that on
> get_root_node().

I will have a look when I have time.

Though, I am doubting the correctness of the
"doc->write_to_stream_formatted()" method now.  I expect the output to
be formatted, but if you look at the last few nodes, they are not
formatted at all. See below. Am I misunderstanding something?

Thank you,
Andrej


-------------- output of write_to_stream_formatted(), is it really
formatted? ----------------


<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://www.contentional.eu"; version="1.0"
clientName="Belastingdienst" projectName="GBV" phase="1" iteration="1"
sessionName="M2 - AUTO TEST3">
  <hosts>
    <host name="apmvsq1" cluster="apmvsp1+2" type="mainframe"
smtEnabled="0" numCpus="666" opsys="ToBeOverwittenByParser"
hardware="ToBeOverWrittenByParser"
serviceLevel="ToBeOverwittenByParser" cpuSpeed="1"
cpuSpeedBenchmark="MIPS" cacheHitPerc="95" cacheHitTime="0.0015"
cacheMissTime="0.005" monitoringTool="ascb" timeDiff="67"/>







  </hosts>
<msrs><msr xmlns="http://www.contentional.eu"; type="SU" guiName="SU1"
ignoreEteValidator="0"><parser-logs><ete
filename="SU1/20100304-GBV-M2-SU1.ete"/><resource
filename="SU1/20100304-GBV-M2-SU1.mf"
hostname="apmvsq1"/></parser-logs></msr></msrs></session>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]