0

Create an xml document from InputStream which contains xml data. Is it possible?

2 Answers 2

1

xydev

Use this Xmlserializer

        XmlSerializer serializer = Xml.newSerializer ();
        StringWriter writer = new StringWriter ();

            serializer.setOutput (writer);
            serializer.startDocument ("UTF-8", true);
            serializer.startTag ("", "xmlresponse");
            serializer.startTag ("", "employee");
             serializer.attribute ("", "id", "1456");
            serializer.endTag ("", "employee");
.....

I hope you will dig out rest

Good Luck!

Sign up to request clarification or add additional context in comments.

Comments

1

Not sure what you mean, but check the docs for DocumentBuilder.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.