The following
example illustrates constructing instances of Recipe classes from
an XML document. In this example, false
means
there is no validation against a DTD document.
FileInputStream fiStream = new
FileInputStream
xmlFileName);
Recipe iRecipe = new Recipe(fiStream,
false);
or
FileInputStream fiStream = new
FileInputStream
xmlFileName);
Recipe iRecipe = new Recipe();
iRecipe.deserializeXML(fiStream, false);
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |