Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
708 B
Text
20 lines
708 B
Text
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
import { XmlShapeDeserializer } from "./XmlShapeDeserializer";
|
|
import { XmlShapeSerializer } from "./XmlShapeSerializer";
|
|
export class XmlCodec extends SerdeContextConfig {
|
|
settings;
|
|
constructor(settings) {
|
|
super();
|
|
this.settings = settings;
|
|
}
|
|
createSerializer() {
|
|
const serializer = new XmlShapeSerializer(this.settings);
|
|
serializer.setSerdeContext(this.serdeContext);
|
|
return serializer;
|
|
}
|
|
createDeserializer() {
|
|
const deserializer = new XmlShapeDeserializer(this.settings);
|
|
deserializer.setSerdeContext(this.serdeContext);
|
|
return deserializer;
|
|
}
|
|
}
|