Class CimXmlSerializer

java.lang.Object
org.sblim.wbem.cimxml.CimXmlSerializer

public class CimXmlSerializer extends Object
Class CimXmlSerializer implements a XML serializer for DOM documents that is specialized for CIM-XML. It might not be used as a generel purpose serializer since it doesn't support any DOM or XML features not required by CIM-XML.
  • Method Details

    • serialize

      public static void serialize(OutputStream pOS, Document pDoc, boolean pPretty) throws IOException
      Serializes a given DOM document as (CIM-)XML to a given output stream
      Parameters:
      pOS - The output stream
      pDoc - The document
      pPretty - If true the XML is nicely wrapped and indented, otherwise it's all in one line
      Throws:
      IOException - Whenever something goes wrong