0031340: LDOM fails to read XML file starting with BOM
[occt.git] / src / LDOM / LDOMParser.cxx
index 82730ed..341d902 100644 (file)
@@ -106,6 +106,18 @@ const TCollection_AsciiString& LDOMParser::GetError
   return myError;
 }
 
+//=======================================================================
+//function : GetBOM
+//purpose  : Returns the byte order mask defined at the start of a stream
+//=======================================================================
+
+LDOM_OSStream::BOMType LDOMParser::GetBOM() const
+{
+  if (myReader)
+    return myReader->GetBOM();
+  return LDOM_OSStream::BOM_UNDEFINED;
+}
+
 //=======================================================================
 //function : parse
 //purpose  :