prefixes

prefixes()
Instance Public methods

Returns an array of Strings containing all of the prefixes declared by this set of # attributes. The array does not include the default namespace declaration, if one exists.

doc = Document.new("<a xmlns='foo' xmlns:x='bar' xmlns:y='twee' "+
      "z='glorp' p:k='gru'/>")
prefixes = doc.root.attributes.prefixes    #-> ['x', 'y']
doc_ruby_on_rails
2015-05-06 02:03:20
Comments
Leave a Comment

Please login to continue.