package com.bigcommerce.api;

import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

class Resource {
	Element document;

	Resource(Element document) {
		this.document = document;
	}

	protected String getScalarField(String name) {
		NodeList elements = document.getElementsByTagName(name);
		Node field = elements.item(0);
		if (field != null) {
			return field.getTextContent();
		}
		return null;
	}
}

@@ -106,16 +106,32 @@
 eList;%0A%0A
+public abstract 
 class Re
@@ -131,20 +131,20 @@
 lass Res
-ourc
+pons
 e %7B%0A%09Ele
@@ -167,12 +167,30 @@
 %09Res
-ourc
+ponse() %7B%0A%09%7D%0A%0A%09Respons
 e(El
@@ -245,16 +245,90 @@
 %0A%0A%09p
-rotected
+ublic void setDocument(Element document) %7B%0A%09%09this.document = document;%0A%09%7D%0A%0A%09public
  Str
@@ -531,11 +531,60 @@
 null;%0A%09%7D
+%0A%0A%09public Element asXml() %7B%0A%09%09return document;%0A%09%7D
 %0A%7D%0A

Update Response.java