mySobek Home   |   Help
Skip Navigation Links.
Expand <a href='https://sobekrepository.org/sobekcm' title='Sobek home page'>Project Home</a>Project Home
Expand <a href='https://sobekrepository.org/help' title='Online user help'>User Help</a>User Help
Expand <a href='https://sobekrepository.org/sobekcm/technical' title='Sobek home page'>Technical Help</a>Technical Help
Expand <a href='https://sobekrepository.org/software' title='Center for downloading all SobekCM-related software'>Download Center</a>Download Center
Training Videos
Collapse <a href='https://sobekrepository.org/codehelp' title='Details on each of the different classes, interfaces, properties, etc..'>Code Details</a>Code Details
MISSING BANNER

MARCXML_Parser Class



Parser steps through the records in a MarcXML file or stream.


Namespace: SobekCM.Resource_Object.MARC.Parsers
Assembly: SobekCM_Resource_Object (in SobekCM_Resource_Object.dll) Version: 4.10.0.0 (4.10.0)

Syntax

C#
public class MARCXML_Parser : IEnumerable<MARC_Record>, 
	IEnumerable, IEnumerator<MARC_Record>, IDisposable, IEnumerator

Remarks

Written by Mark Sullivan for the University of Florida Digital Library

You can either pass in the stream or file to read into the constructor and immediately begin using Next() to step through them, or you can use the empty constructor and call the Parse methods for the first record.

To use the IEnumerable interface, you must pass in the Stream or filename in the constructor.

Inheritance Hierarchy

System..::..Object
  SobekCM.Resource_Object.MARC.Parsers..::..MARCXML_Parser

Constructors

  NameDescription
Public methodMARCXML_Parser()()()()
Constructor for a new instance of this class
Public methodMARCXML_Parser(Stream)
Constructor for a new instance of this class
Public methodMARCXML_Parser(String)
Constructor for a new instance of this class

Methods

  NameDescription
Public methodClose
Close the stream reader used for this parsing
Public methodDispose
Close any open streams which may remain
Public methodGetEnumerator
Gets the IEnumerator for this (itself)
Public methodMoveNext
Moves to the next record, and returns TRUE if one existed
Public methodNext
Returns the next record in the MarcXML_File file or stream
Public methodParse(Stream)
Begins parsing from a stream containing MarcXML records.
Public methodParse(String)
Begins parsing a new MarcXML file.
Public methodStatic memberRead_From_MARC_XML_File
Reads the data from a MARC XML file into this record
Public methodStatic memberRead_MARC_Info
Reads the data from a XML Node Reader
Public methodReset
Resets the base stream, if that is possible

Properties

  NameDescription
Public propertyCurrent
Returns the current record
Public propertyEOF_Flag
Flag indicates if an end of file has been reached

See Also



Version 4.10.0 ( last generated Monday, March 7, 2016 )