Table of Contents

Class XMLFragmentParser

Namespace
Alis.Core.Physic.Common
Assembly
Alis.dll

The xml fragment parser class

internal class XMLFragmentParser

Inheritance

Inherited Members

Constructors

XMLFragmentParser(Stream)

Initializes a new instance of the Alis.Core.Physic.Common.XMLFragmentParser class

public XMLFragmentParser(Stream stream)

Parameters

stream Stream

The stream

Fields

_buffer

The buffer

private FileBuffer _buffer

Field Value

FileBuffer

_punctuation

The list

private static readonly List<char> _punctuation

Field Value

List<char>

Properties

RootNode

Gets or sets the value of the root node

public XMLFragmentElement RootNode { get; private set; }

Property Value

XMLFragmentElement

Methods

Load(Stream)

Loads the stream

public void Load(Stream stream)

Parameters

stream Stream

The stream

LoadFromStream(Stream)

Loads the from stream using the specified stream

public static XMLFragmentElement LoadFromStream(Stream stream)

Parameters

stream Stream

The stream

Returns

XMLFragmentElement

The xml fragment element

NextToken()

Nexts the token

private string NextToken()

Returns

string

The str

Parse()

Parses this instance

private void Parse()

Exceptions

XMLFragmentException

Unable to load root node

PeekToken()

Peeks the token

private string PeekToken()

Returns

string

The str

ReadUntil(char)

Reads the until using the specified c

private string ReadUntil(char c)

Parameters

c char

The

Returns

string

The str

TrimControl(string)

Trims the control using the specified str

private string TrimControl(string str)

Parameters

str string

The str

Returns

string

The new str

TrimTags(string)

Trims the tags using the specified outer

private string TrimTags(string outer)

Parameters

outer string

The outer

Returns

string

The string

TryParseNode()

Tries the parse node

public XMLFragmentElement TryParseNode()

Returns

XMLFragmentElement

The element

Exceptions

XMLFragmentException
XMLFragmentException
XMLFragmentException