??? Java exception occurred:
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.j
ava:201)
.
Error in ==> xmlread at 46
parseResult = p.parse(fileName);
I've tried other functions from toolboxes but they all give me errors
as well, here's a copy of some of the XML document
HDF
ÿÿÿÿÿÿÿÿ×V ÿÿÿÿÿÿÿÿ
` HEAP ( HDFEOS
HDFEOS INFORMATION Ø
TREE ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ X
` HEAP
0 x TREE
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ (
Ð
SNOD ( Ð
x @
HEAP
À FILE_ATTRIBUTES TREE ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ø
Ø
SNOD ø Ø x
X
HEAP
TREE ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
That doesn't look much like XML, which should be human
readable text. This looks like some sort of binary format.
- Randy
Looks like a binary HDF file?
GROUP=SWATH_1
SwathName="O3"
GROUP=Dimension
OBJECT=Dimension_1
DimensionName="nTimes"
Size=3498
END_OBJECT=Dimension_1
OBJECT=Dimension_2
DimensionName="nTimesTotal"
Size=3498
END_OBJECT=Dimension_2
OBJECT=Dimension_3
DimensionName="nLevels"
Size=37
END_OBJECT=Dimension_3
END_GROUP=Dimension
GROUP=DimensionMap
END_GROUP=DimensionMap
GROUP=IndexDimensionMap
END_GROUP=IndexDimensionMap
GROUP=GeoField
that's what's after the crap i showed before but i dont understand
why all that junk at the beginning of the file is there. it looks
like it's messing me up.
-Dan
It's an HDF-EOS file. It's a specialized form of HDF that was developed
for the Earth Observing Satellites Terra and Aqua.
This still doesn't look like XML, which uses tags that look like
HTML. Ex: <OBJECT>Dimension_3
<DimensionName="nLevels">
<Size=37>
</OBJECT>
You should go back to the source that created this file
and try other formats.
- Randy
If that's the case, the OP might be interested in this MATLAB Digest article
from November 2002.
http://www.mathworks.com/company/newsletters/digest/nov02/earth.html
and this section of the MATLAB documentation:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/ch_imp42.html
--
Steve Lord
sl...@mathworks.com
-Dan
Careful about drawing conclusions on 3 year old articles.
Try "help hdf5read"
--
Scott
Reverse name to reply
Did you look at any of the HDF 5 tools (h5info, h5read, etc)?