class PBCore::DescriptionDocument

Public Instance Methods

namespace_attributes() click to toggle source

NOTE: For some reason, these attributes will not parse with SAXMachine attributes. TODO: Is there a better way to set namespace attributes?

# 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