Join the splitted element
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 68
- Joined: Mon Jul 04, 2022 8:42 am
Join the splitted element
Hi Team,
I have splitted the element using documentcCntroller.split(). Now i want to join back the elements to its initial position how to achieve it?
Example :
1. <label.designator>FN</label.designator>
after split it becomes
<label.designator>F</label.designator><label.designator>N</label.designator>
now i want to join it back as
<label.designator>FN</label.designator>
Please let us know is there any existing method for the same?
Regards
Shilpa.P
I have splitted the element using documentcCntroller.split(). Now i want to join back the elements to its initial position how to achieve it?
Example :
1. <label.designator>FN</label.designator>
after split it becomes
<label.designator>F</label.designator><label.designator>N</label.designator>
now i want to join it back as
<label.designator>FN</label.designator>
Please let us know is there any existing method for the same?
Regards
Shilpa.P
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Join the splitted element
Hello,
There is no direct method to join the elements but you can use other methods from AuthorDocumentController to obtain this. For example:
- ro.sync.ecss.extensions.api.AuthorDocumentController.createDocumentFragment(int, int) to get the content from the second node as AuthorDocumentFragment
- ro.sync.ecss.extensions.api.AuthorDocumentController.serializeFragmentToXML(AuthorDocumentFragment) to get the content from the first step as String
- ro.sync.ecss.extensions.api.AuthorDocumentController.deleteNode(AuthorNode) to delete the second node
- ro.sync.ecss.extensions.api.AuthorDocumentController.insertXMLFragment(String, int) to insert the content fragment obtained at step two inside the first node.
Best Regards,
Mihaela
There is no direct method to join the elements but you can use other methods from AuthorDocumentController to obtain this. For example:
- ro.sync.ecss.extensions.api.AuthorDocumentController.createDocumentFragment(int, int) to get the content from the second node as AuthorDocumentFragment
- ro.sync.ecss.extensions.api.AuthorDocumentController.serializeFragmentToXML(AuthorDocumentFragment) to get the content from the first step as String
- ro.sync.ecss.extensions.api.AuthorDocumentController.deleteNode(AuthorNode) to delete the second node
- ro.sync.ecss.extensions.api.AuthorDocumentController.insertXMLFragment(String, int) to insert the content fragment obtained at step two inside the first node.
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service