PhoenixmlDb.XQuery

ResourceContent

A resource's content as supplied by the host, with the base URI it is to be known by: relative references inside it resolve against that URI and come back to the resolver.

#ResourceContent

Namespace: PhoenixmlDb.XQuery.Security

A resource's content as supplied by the host, with the base URI it is to be known by: relative references inside it resolve against that URI and come back to the resolver.

#Constructors

##ctor(String,Uri)

Content already decoded to text.

##ctor(IO.Stream,Uri)

Content as bytes; the engine decodes it as it would the file. The engine disposes the stream.

#Properties

Name Description
BaseUri The URI this content is known by.

#Methods

#OpenStream

The content as a stream of bytes (UTF-8 when it was supplied as text).

#ReadBytes

The content as bytes, with the encoding they are in when that is already known.

#ReadText

The content as text; bytes are decoded as UTF-8 unless a byte-order mark says otherwise.