@@ -44,18 +44,18 @@ Python integer and the second ``<baz>`` as a string value. We also want to
4444access all of them (there may be lots on another ``<foo> ``) as a big list of
4545integers. We can create an object to map these fields like this::
4646
47- from neuxml.xmlmap import core, fields
47+ from neuxml import xmlmap
4848
49- class Foo(core .XmlObject):
50- first_baz = fields .IntegerField('bar[1]/baz')
51- second_baz = fields .StringField('bar[2]/baz')
52- qux = fields .StringListField('qux')
49+ class Foo(xmlmap .XmlObject):
50+ first_baz = xmlmap .IntegerField('bar[1]/baz')
51+ second_baz = xmlmap .StringField('bar[2]/baz')
52+ qux = xmlmap .StringListField('qux')
5353
5454:attr: `first_baz `, :attr: `second_baz `, and :attr: `all_baz ` here are
5555attributes of the :class: `Foo ` object. We can access them in later code like
5656this::
5757
58- >>> foo = xmlmap.core. load_xmlobject_from_file(foo_path, xmlclass=Foo)
58+ >>> foo = xmlmap.load_xmlobject_from_file(foo_path, xmlclass=Foo)
5959 >>> foo.first_baz
6060 42
6161 >>> foo.second_baz
@@ -82,7 +82,7 @@ Concepts
8282--------
8383
8484:mod: `~neuxml.xmlmap ` simplifies access to XML data in Python. Programs
85- can define new :class: `~neuxml.xmlmap.core. XmlObject ` subclasses representing a
85+ can define new :class: `~neuxml.xmlmap.XmlObject ` subclasses representing a
8686type of XML node with predictable structure. Members of these classes can be
8787regular methods and values like in regular Python classes, but they can also be
8888special :ref: `field <xmlmap-field >` objects that associate XPath expressions
@@ -128,7 +128,7 @@ whole collection of them.
128128Field objects are typically created as part of an :class: `XmlObject `
129129definition and accessed with standard Python object attribute syntax. If a
130130:class: `Foo ` class defines a :attr: `bar ` attribute as an
131- :mod: `~neuxml.xmlmap.fields ` field object, then an object will reference it simply
131+ :mod: `~neuxml.xmlmap ` field object, then an object will reference it simply
132132as ``foo.bar ``.
133133
134134.. automodule :: neuxml.xmlmap.fields
@@ -138,12 +138,12 @@ as ``foo.bar``.
138138Other facilities
139139----------------
140140
141- .. autofunction :: neuxml.xmlmap.core. load_xmlobject_from_string
141+ .. autofunction :: neuxml.xmlmap.load_xmlobject_from_string
142142
143- .. autofunction :: neuxml.xmlmap.core. load_xmlobject_from_file
143+ .. autofunction :: neuxml.xmlmap.load_xmlobject_from_file
144144
145- .. autofunction :: neuxml.xmlmap.core. parseString
145+ .. autofunction :: neuxml.xmlmap.parseString
146146
147- .. autofunction :: neuxml.xmlmap.core. parseUri
147+ .. autofunction :: neuxml.xmlmap.parseUri
148148
149- .. autofunction :: neuxml.xmlmap.core. loadSchema(uri, base_uri=None)
149+ .. autofunction :: neuxml.xmlmap.loadSchema(uri, base_uri=None)
0 commit comments