Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Blog Reader Android App Rebuilding from Scratch All About @string Resources

Rob Bridges
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Rob Bridges
Full Stack JavaScript Techdegree Graduate 35,467 Points

Why is the code challange not accepting this?

<?xml version="1.0" encoding="utf-8"?> <resources>
< string name="saveLabel">Save My Changes < /string >

</resources> I added a space before after the opening bracket of the string opening and closing bracket so that it'd properly show up on the forum, so that's not what I'm actually trying to pass into the code challenge. The code challenge doesn't seem to want to accept that at all, I even thought they were just being picky so I changed the name to 'saveLabel' But I can't see see why it's not accepting it, can anyone help out with this, I'd definitely appreciate it.

2 Answers

Pedro GCA
Pedro GCA
20,683 Points

Hey Rob, I couldn't understand exactly what is happening with you but I tested it here and worked. Should be like this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="saveLabel">Save My Changes</string>
</resources>
Rob Bridges
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Rob Bridges
Full Stack JavaScript Techdegree Graduate 35,467 Points

That's exactly what I was putting and it wasn't working, I had to try it in Firefox to get it to pass, who knows what was going on. Thanks though!