P
Philippe Poulard
hi,
i have the following fragment :
******
<?xml version="1.0">
Begin
<elem/>
End
******
i intend to insert it within this document :
******
<?xml version="1.0">
<!DOCTYPE root [
<!ENTITY in SYSTEM "fragment.xml">
]>
<root>
Hello world !!!∈
</root>
******
the result is (after serialization) :
******
<?xml version="1.0">
<root>
Hello world !!!
Begin
<elem/>
End
</root>
******
while i was expecting :
******
<?xml version="1.0">
<root>
Hello world !!!Begin
<elem/>
End
</root>
******
i thought that the text declaration should behave like the xml
declaration, that is to say that "<?xml ...?>CR" was entirely discarded
(including the CR) before replacement
do i have to remove the first CR at hand ?
do i have to correct my fragment :
******
<?xml version="1.0"?>Begin
<elem/>
End
****** ?
did i miss something ???
--
Cordialement,
///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
i have the following fragment :
******
<?xml version="1.0">
Begin
<elem/>
End
******
i intend to insert it within this document :
******
<?xml version="1.0">
<!DOCTYPE root [
<!ENTITY in SYSTEM "fragment.xml">
]>
<root>
Hello world !!!∈
</root>
******
the result is (after serialization) :
******
<?xml version="1.0">
<root>
Hello world !!!
Begin
<elem/>
End
</root>
******
while i was expecting :
******
<?xml version="1.0">
<root>
Hello world !!!Begin
<elem/>
End
</root>
******
i thought that the text declaration should behave like the xml
declaration, that is to say that "<?xml ...?>CR" was entirely discarded
(including the CR) before replacement
do i have to remove the first CR at hand ?
do i have to correct my fragment :
******
<?xml version="1.0"?>Begin
<elem/>
End
****** ?
did i miss something ???
--
Cordialement,
///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------