Programming Amazon Web Services
Programming Amazon Web Services S3, EC2, SQS, FPS, and SimpleDB By James Murty
March 2008
Pages: 600


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Still On Page 21...
tenasakai
post Jul 1 2009, 08:24 PM
Post #1


New Member
*

Group: Members
Posts: 7
Joined: 1-July 09
Member No.: 18,967



Hi folks,

I am still on page 21. I typed a few lines into a file named example.xml, which looks like:

<?xml version='1.0' encoding='UTF-8'?>
<ListAllMyBucketsResult xmlns='http://s3.amazon.com/doc/2006-03-01/'>
<Owner>
<ID>1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b</ID>
<DisplayName>jamesmurty</DisplayName>
</Owner>
<Buckets>
<Bucket>
<Name>oreilly-aws</Name>
<CreationDate>2007-09-24T08:20:49.000Z</CreationDate>
</Bucket>
<Bucket>
<Name>my-bucket</Name>
<CreationDate>2007-09-24T08:39:30.000Z</CreationDate>
</Bucket>
</Buckets>
</ListAllMyBucketsResult>


Then I typed a few lines like:

[tsakai]$ irb
irb(main):001:0> xml_text = File.new('example.xml','r').read
=> "<?xml version='1.0' encoding='UTF-8'?>\n<ListAllMyBucketsResult xmlns='http://s3.amazon.com/doc/2006-03-01/'>\n <Owner>\n <ID>1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b3c4d5e6f1a2b</ID>\n <DisplayName>jamesmurty</DisplayName>\n </Owner>\n <Buckets>\n <Bucket>\n <Name>oreilly-aws</Name>\n <CreationDate>2007-09-24T08:20:49.000Z</CreationDate>\n </Bucket>\n <Bucket>\n <Name>my-bucket</Name>\n <CreationDate>2007-09-24T08:39:30.000Z</CreationDate>\n </Bucket>\n </Buckets>\n</ListAllMyBucketsResult>\n"
irb(main):002:0> require 'rexml/document'
=> true
irb(main):003:0> xml_doc = REXML::Document.new(xml_text)
=> <UNDEFINED> ... </>
irb(main):004:0>

What I don't understand is the response from my last line:
<UNDEFINED> ... </>

Can someone please tell me what this means?

Regards,

Tena Sakai
Attached File(s)
Attached File  example.xml ( 535bytes ) Number of downloads: 48
 
Go to the top of the page
 
+Quote Post
JamesMurty
post Jul 1 2009, 09:03 PM
Post #2


Active Member
**

Group: Members
Posts: 20
Joined: 20-March 08
Member No.: 161



Don't get too bogged down in the details. The main point of this section of the book is to demonstrate very quickly how XPATH queries can be used to search XML documents.

If you continue on, you will find that the sample works as expected.

The topic of XML document processing is a big one, and it isn't really addressed in any detail in this book
Go to the top of the page
 
+Quote Post
tenasakai
post Jul 2 2009, 08:58 AM
Post #3


New Member
*

Group: Members
Posts: 7
Joined: 1-July 09
Member No.: 18,967



Thank you, James. It is a habit of mine that I get caught in details. I will charge on.

Regards,

Tena Sakai

QUOTE (JamesMurty @ Jul 1 2009, 09:03 PM) *
Don't get too bogged down in the details. The main point of this section of the book is to demonstrate very quickly how XPATH queries can be used to search XML documents.

If you continue on, you will find that the sample works as expected.

The topic of XML document processing is a big one, and it isn't really addressed in any detail in this book

Go to the top of the page
 
+Quote Post
mark456
post Jul 2 2009, 11:02 PM
Post #4


New Member
*

Group: Members
Posts: 1
Joined: 2-July 09
Member No.: 18,992



The Amazon Web Services (AWS) are a collection of remote computing services (also called web services) offered over the Internet by Amazon.com.

Launched in July 2002, Amazon Web Services provide online services for other web sites or client-side applications. Most of these services are not exposed directly to end users, but instead offer functionality that other developers can use. In June 2007, Amazon claimed that more than 330,000 developers had signed up to use Amazon Web Services.[1]

Amazon Web Services’ offerings are accessed over HTTP, using REST and SOAP protocols. All are billed on usage, with the exact form of usage varying from service to service.

mark456
alter anchor text each time please

administration work
admin job
admin jobs
uk admin jobs
administration career
administration job
Go to the top of the page
 
+Quote Post
wtpjoco
post Nov 5 2009, 06:45 AM
Post #5


New Member
*

Group: Members
Posts: 4
Joined: 5-November 09
Member No.: 20,875



QUOTE (tenasakai @ Jul 2 2009, 08:58 AM) *
Thank you, James. It is a habit of mine that I get caught in details. I will charge on.

Regards,

Tena Sakai


Ehm tena sakai,
how do you charge the details?
maybe you can give me a tipp or tell me how do you charge it?

Go to the top of the page
 
+Quote Post
johnvarenda
post Jan 4 2010, 06:06 PM
Post #6


New Member
*

Group: Members
Posts: 1
Joined: 4-January 10
Member No.: 21,754



hi...
How do you make charge.Can you explain the process
.........
data entry india


QUOTE (tenasakai @ Jul 2 2009, 08:58 AM) *
Thank you, James. It is a habit of mine that I get caught in details. I will charge on.

Regards,

Tena Sakai

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 9th February 2010 - 06:57 PM