⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (366 Bytes)
Bug #9539
» sample.rb
Sample script -
mbarcala (Mario Barcala)
, 02/20/2014 09:09 AM
# -*- coding: utf-8 -*-
require
"rexml/document"
File
.
open
(
"sample.xml"
)
do
|
file
|
document
=
REXML
::
Document
.
new
file
puts
REXML
::
XPath
.
first
(
document
,
"/document/header/anno_publicacion/text()"
)
puts
REXML
::
XPath
.
first
(
document
,
"/document/header/año_publicacion/text()"
)
puts
REXML
::
XPath
.
first
(
document
,
"/document/header/año_publicación/text()"
)
end
« Previous
1
2
Next »
(1-1/2)
Loading...