JiBX
  1. JiBX
  2. JIBX-68

JDOM implementation of IXMLWriter interface

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0-RC0
    • Fix Version/s: 1.0-RC1
    • Component/s: core
    • Labels:
      None
    • Environment:
      JDOM 1.0
    • Number of attachments :
      1

      Description

      I’ve written some JiBX / JDOM integration code (JDOMWriter.java) so that the XML marshalled from Java objects can be accessed as a JDOM Document instead of as a large String. Namespace handling is not yet complete, but it should be usable for most purposes.

      Usage is as follows:

      IBindingFactory bfact = BindingDirectory.getFactory(root, Example.class);
      IMarshallingContext mctx = bfact.createMarshallingContext();
      JDOMWriter jdomWriter = new JDOMWriter();

      mctx.setXmlWriter(jdomWriter);
      mctx.startDocument("UTF-8", null);
      mctx.marshalDocument(example);

      Document document = jdomWriter.getDocument();

        Activity

        Hide
        Dennis Sosnoski added a comment -

        Resolved issues and added code to build.

        Show
        Dennis Sosnoski added a comment - Resolved issues and added code to build.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Andreas Brenk
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: