You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "John Kaputin (JIRA)" <ji...@apache.org> on 2007/08/24 11:20:31 UTC

[jira] Commented: (WODEN-180) XMLElement should provide a method to retrieve its text content.

    [ https://issues.apache.org/jira/browse/WODEN-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522447 ] 

John Kaputin commented on WODEN-180:
------------------------------------

You can get the DOM Element representing a wsdl:documentation element via DocumentationElement.getContent() which returns an XMLElement object, then calling XMLElement.getSource() and casting the java.lang.Object to an org.w3c.dom.Element. Will this help with serialization?  

XMLElement is an abstraction that hides the choice of underlying XML object model (e.g. DOM or Axiom) from the Woden API. The methods on XMLElement are mostly those that existed on DOMUtils in WSDL4J.  DOMUtils did not have any methods for handling text or mixed type content. It's possible to add methods for mixed type to XMLElement if you need this, but could you describe the use case in a bit more detail (i.e. how you intend to serialize the documentation element using the new method(s) ).

> XMLElement should provide a method to retrieve its text content.
> ----------------------------------------------------------------
>
>                 Key: WODEN-180
>                 URL: https://issues.apache.org/jira/browse/WODEN-180
>             Project: Woden
>          Issue Type: Improvement
>          Components: Parser
>            Reporter: Sagara Gunathunga 
>            Priority: Minor
>
> XMLElement should provide a method to retrieve its text content.
> Currently XMLElement provides methods for retrieving child Elements and attributes. When we have text content inside the XMLElement, there is no way to retrieve it. DocumentationElement is a good example for this, where we add human readable text content.
> Because of this deficiency we can't serialize Documentation Element. Wsdl4j facilitates this with the use of org.w3c.dom.Element Interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org