package rdfloader
import "github.com/spdx/gordf/rdfloader/xmlreader"
Index ¶
Constants ¶
const WHITESPACE uint64 = 1<<'\t' | 1<<'\n' | 1<<'\r' | 1<<' '
Types ¶
type Attribute ¶
An attribute is of the form schemaName:tagName="value" which exists inside an opening tag. For example:- If the opening tag is:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:doap="http://usefulinc.com/ns/doap#">
Attributes are given by :-
- SchemaName=xmlns, Name=rdf, Value=http://www.w3.org/1999/02/22-rdf-syntax-ns#
- SchemaName=xmlns, Name=doap, Value=http://usefulinc.com/ns/doap#
type Block ¶
type Block struct { // A block is a valid sub-xml. // for example: // 1. <tag /> // 2. <tag attr="attr" /> // 3. <tag> value </tag> // 4. <parent> <child> value </child> </parent> OpeningTag Tag Value string Children []*Block }
type Pair ¶
type Pair struct { First interface{} Second interface{} }
type Tag ¶
type XMLReader ¶
type XMLReader struct {
// contains filtered or unexported fields
}
func XMLReaderFromFileObject ¶
func XMLReaderFromFilePath ¶
func (*XMLReader) CloseFileObj ¶
func (xmlReader *XMLReader) CloseFileObj()
func (*XMLReader) Read ¶
Source Files ¶
- Version
- v0.0.0-20250128162952-000978ccd6fb (latest)
- Published
- Jan 28, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 weeks ago –
Tools for package owners.