Class: PBCore::DescriptionDocument
- Defined in:
- lib/pbcore/description_document.rb
Instance Method Summary collapse
-
#namespace_attributes ⇒ Object
NOTE: For some reason, these attributes will not parse with SAXMachine attributes.
Methods inherited from Element
all_element_config, attribute_config, #attributes, #build, build_xml, collection_element_config, #elements, has_a_value?, has_sax_machine_attribute?, has_sax_machine_collection_element?, has_sax_machine_top_level_element?, has_sax_machine_value_element?, #to_xml, top_level_element_config, #xml_attributes
Instance Method Details
#namespace_attributes ⇒ Object
NOTE: For some reason, these attributes will not parse with SAXMachine attributes. TODO: Is there a better way to set namespace attributes?
51 52 53 54 55 56 57 58 |
# File 'lib/pbcore/description_document.rb', line 51 def namespace_attributes { # changed to www.pbcore because aapb doesnt like it without 'xmlns' => "http://www.pbcore.org/PBCore/PBCoreNamespace.html", 'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance", 'xsi:schemaLocation' => "http://www.pbcore.org/PBCore/PBCoreNamespace.html http://www.pbcore.org/xsd/pbcore-2.1.xsd" } end |