/**
* Represents data about an XML Entity.
*/
export interface XMLEntity {
/**
* The name of the entity. For example, `
test`'s name would be `title`.
*/
name: string;
/**
* The attributes of the entity. For example, `test`'s attributes would be `{id: "1"}`.
*/
attributes: Record;
/**
* The content of the entity. For example, `test`'s content would be `test`, while `else`'s content would be `[{name: "something", attributes: {}, content: "else"}]`.
*/
content: XMLEntity[] | string;
}
/**
* Represents data about an XML Document.
*/
export interface XMLDocument {
/**
* The attributes of the document. These are the attributes of the `` tag.
*/
attributes: Record;
/**
* The content of the document. This is a list of all of its top-level XML Entities.
*/
content: XMLEntity[];
}