Re: [xml] Entity with elements inside it?
- From: Michael Ludwig <mlu as-guides com>
- To: xml gnome org
- Subject: Re: [xml] Entity with elements inside it?
- Date: Thu, 09 Jul 2009 13:08:08 +0200
Bo Yang schrieb:
But, what I want is that keep the entity_ref node created and then
append the entity content as a sub-dom-tree to the entity_ref. Is
there anyway to do this with libxml2?
Do I understand correctly that you want to both keep the entity
reference and expand it?
Or do you simply want to expand it?
MiLu FLUNDER:~/win-dev/XML > cat nstoken.xml
<!DOCTYPE Urmel [
<!ENTITY jaja "<eins><zwei/><drei>drei</drei></eins>">
]>
<Urmel> &jaja; </Urmel>
MiLu FLUNDER:~/win-dev/XML > xmllint nstoken.xml
<?xml version="1.0"?>
<!DOCTYPE Urmel [
<!ENTITY jaja "<eins><zwei/><drei>drei</drei></eins>">
]>
<Urmel> &jaja; </Urmel>
MiLu FLUNDER:~/win-dev/XML > xmllint --noent nstoken.xml
<?xml version="1.0"?>
<!DOCTYPE Urmel [
<!ENTITY jaja "<eins><zwei/><drei>drei</drei></eins>">
]>
<Urmel> <eins><zwei/><drei>drei</drei></eins> </Urmel>
Michael Ludwig
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]