Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] creating elements empty style

Sapphire XML binding uses DOM. There is no DOM API to distinguish between these cases. Apache XML parser and DOM implementation does the reasonable thing of using the compact form when element is created and expanding it if content is added. WTP XML Editor DOM implementation isn’t so nice. It always uses the expanded form. Arguably that’s a bug in WTP XML Editor, but I haven’t had the chance to pursue a fix there.

 

- Konstantin

 

 

From: sapphire-dev-bounces@xxxxxxxxxxx [mailto:sapphire-dev-bounces@xxxxxxxxxxx] On Behalf Of Greg Amerson
Sent: Thursday, May 12, 2011 4:02 PM
To: Sapphire project
Subject: [sapphire-dev] creating elements empty style

 

Hi,

 

Can you direct sapphire's standard xml element binding to generate elements that have no children to be empty?  

 

So

 

<foobar />

 

instead of 

 

<foobar></foobar>

--
Greg Amerson
Liferay, Inc.


Back to the top