Quoting Phillip Rhodes <[EMAIL PROTECTED]>:

> In my source xml file I have the following element:
> <img src="abc.html"/>
> 
> In my tagmap, I define a mapping to convert "img" to "image" per the dtd
> But what about the attributes?
> The img attribute of "src" needs to be converted to an attribute called
> "url"
> 
> We need :
> <image url="abc.html"/>

If you are using the TagMap-object:
peer = new XmlPeer(ElementTags.IMAGE, "img);
peer.addAlias(ElementTags.URL, "src");

If you are using a tagmap.xml:
<tag name="image" alias="img">
    <attribute name="url" alias="src" />
</tag>


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to