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: Fri, 10 Jul 2009 12:11:32 +0200
Bo Yang schrieb:
On Thu, Jul 9, 2009 at 7:08 PM, Michael Ludwig<mlu as-guides com>
wrote:
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?
I want both.
I want to the parser create a entity_ref node, and then append the
parsed "jaja" to the children of entity_ref.
Bo,
that's not parsing the document, that's transforming it. I don't know
what processing model is best used to achieve what you want, possibly
a SAX filter, XSLT not being an option as the physical structure
(entities) isn't preserved in its data model.
Regards,
Michael Ludwig
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]