M
Mateusz Loskot
Hi,
I'd like to ask how XML parsers should handle attributes which consists
of " entity as value. I know XML allows to use both: single and
double quotes as attribute value terminator. That's clear.
But how should parser react for such situation:
I have CORDSYS element with string attribute which consists of value
with many " entities:
<COORDSYS
string="GEOGCS["GCS_WGS_1984",DATUM["WGS84",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]]"/>
So, when I read it to DOM and after someoperations I try to save it to
file parsers replaces double-quote value terminators to single-quote as
follows:
<COORDSYS
string='GEOGCS["GCS_WGS_1984",DATUM["WGS84",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]]'/>
Please, explain me how parser is expected to handle this element in
save operation.
Best regards
I'd like to ask how XML parsers should handle attributes which consists
of " entity as value. I know XML allows to use both: single and
double quotes as attribute value terminator. That's clear.
But how should parser react for such situation:
I have CORDSYS element with string attribute which consists of value
with many " entities:
<COORDSYS
string="GEOGCS["GCS_WGS_1984",DATUM["WGS84",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]]"/>
So, when I read it to DOM and after someoperations I try to save it to
file parsers replaces double-quote value terminators to single-quote as
follows:
<COORDSYS
string='GEOGCS["GCS_WGS_1984",DATUM["WGS84",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]]'/>
Please, explain me how parser is expected to handle this element in
save operation.
Best regards