Scrivio Interview library
LeadershipPrincipal5 min read · updated 12 November 2026

XML dominated enterprise integration in the 2000s (SOAP, WS-*, XSLT pipelines) and JSON now dominates. What does that history mean for how a large company should treat its remaining XML systems over the next decade?

XML lost the general integration role to JSON, but it is still the required format in many standards, such as ISO 20022 payments, UBL invoices, SAML single sign-on and office documents, so it will not disappear from a large company. The sensible strategy is to keep XML at the edges where external standards require it, translate it into internal models, budget for security patching and scarce skills, retire SOAP where partners offer REST without rewriting stable pipelines for no reason, and carry XML's best idea, schema-first contracts, into JSON Schema, OpenAPI, Avro and Protobuf.

Why this question is asked

Technology waves leave sediment. In the 2000s, XML was the answer to almost every integration question: SOAP web services with WS-* standards for security and transactions, XSLT pipelines transforming messages between systems, and XML configuration everywhere. Today new APIs are JSON, and many engineers have never written an XSD. A senior engineer or architect must decide what to do with the XML that remains, and interviewers ask this to see whether we can think beyond fashion. In this answer, we will look at where XML is still strong, place it at the edges of our systems, cover the cost of keeping it, decide what to retire, and carry its lessons forward.

1Where XML Is Still Strong

JSON won for web APIs because it maps directly to objects in JavaScript and most languages, is shorter, and needs no schema to start. But XML has features that some domains rely on: namespaces to mix vocabularies safely, mixed content where text and markup interleave, rich schemas with precise types, and mature digital signature standards.

So XML remains the mandated format in important areas. Payments are moving onto ISO 20022 XML messages across many networks. Electronic invoicing uses UBL and related XML formats, often required by governments. SAML, still common for enterprise single sign-on, is XML with XML signatures. Office documents (.docx, .xlsx) are zipped XML. Many government, healthcare and tax reporting standards are XML as well. A large company does not choose these formats; its partners and regulators do.

2Keep XML at the Edges

The healthiest architecture treats XML as an external language. At the boundary, an adapter receives the partner's XML, validates it against the official schema, and translates it into the company's internal model, which is usually JSON over HTTP or events in Kafka with Avro or Protobuf. Inside, services never see XML. On the way out, another adapter produces the required XML from the internal model.

The reason is containment. XML skills, XML security settings and XML libraries are needed only in a few adapters owned by a team that knows them well. When the external standard changes version, only the adapter changes, and the dozens of internal services are untouched.

Step throughXML kept at the edges
  1. Partners and regulatorsISO 20022, UBL, SAML, SOAP
  2. Edge adaptersvalidate against XSD, translate, sign
  3. Internal modelJSON, Avro or Protobuf contracts
  4. Domain servicesnever parse XML

4 layers, from the top down. Step through them one at a time.

Only the adapter layer needs XML expertise and XML security configuration.

3The Ongoing Cost of Keeping XML

Keeping XML is not free, and the budget should say so. XML stacks need security attention: XML external entity and entity expansion attacks, XML signature wrapping attacks against SAML, and patches for libraries such as Xerces, Saxon or the SOAP frameworks. Each JDK and framework upgrade brings XML work too, as the JAXB removal from the JDK and the javax to jakarta rename showed.

The quieter cost is skills. Fewer engineers each year know XSD, XSLT and namespaces well, so the few who do become a bottleneck and a key-person risk. We should plan for it: train a small group per area, pair new people on XML changes, write tests for every mapping, and record ownership. A team that understands its XML adapters is far cheaper than an emergency contractor.

4What to Retire and What to Leave Alone

The decision for each XML system should be driven by business value, not by a dislike of angle brackets.

Step throughDeciding the future of an XML integration
  1. Does an external standard require XML?
    YesKeep XML at the edge, translate insideNoGo to the next question
  2. Does the partner offer a REST or JSON alternative?
    YesPlan migration when the integration next changesNoKeep the SOAP or XML interface
  3. Is the pipeline stable and cheap to run?
    YesLeave it, keep it patched and testedNoRefactor or replace with a clear business case

3 steps in order. Play them, or step through them one at a time.

Retiring SOAP integrations where partners offer REST alternatives reduces tooling and skills needed, and it is best done when the integration has to change anyway, for a new feature or a contract renewal. A stable XSLT pipeline that has run for ten years without trouble, on the other hand, should usually be left alone: rewriting it in Java costs months, risks subtle behaviour changes and delivers nothing the business can see. The right investment there is tests and current tooling, not a rewrite.

5Carry Forward the Best Idea: Schema-First Contracts

XML's strongest legacy is discipline. With WSDL and XSD, a contract was written first, both sides generated code from it, and validation caught bad messages at the door. Early JSON APIs often lost that: payloads were whatever the code produced, and breaking changes were found in production.

We should keep the discipline in the new formats. OpenAPI describes REST APIs and can generate clients and servers; JSON Schema validates payloads; Avro and Protobuf contracts with a schema registry enforce compatible evolution for events. So the history is not only a story of XML losing; it is a lesson that contracts, versioning and validation matter whatever the syntax.

6Follow-up questions

Will ISO 20022 and similar standards ever move to JSON?

Some standards bodies publish JSON representations or APIs alongside XML, and that may grow. But regulated messaging changes slowly, and the XML schemas are the reference for the foreseeable future, so a company should plan to support XML at its edges for at least the next decade.

Should a new team learn XSLT?

Only the people who maintain XSLT-based integrations need deep skills. For them, yes, and with XSLT 3.0 via Saxon rather than only the JDK's XSLT 1.0. For everyone else, understanding namespaces, XSD validation and secure parsing is enough.

Is SOAP itself a security problem?

Not inherently, but SOAP stacks are large, older ones may be unpatched, and WS-Security and XML signatures are complex to configure correctly. Keeping SOAP frameworks current and limiting them to the edge adapters keeps that risk contained.

7Conclusion

In this answer, we saw that XML moved from being the default integration format to a specialist one, but it remains strong in payments, invoicing, identity, office documents and government standards, so it will stay in a large company. We keep it at the edges and translate to internal models, budget for security patching and scarce skills, retire SOAP when partners offer REST and the integration changes anyway, leave stable pipelines alone unless there is a business case, and carry schema-first contract discipline into OpenAPI, JSON Schema, Avro and Protobuf.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start from the fact that XML is not going away. JSON took over general web APIs, but XML is still what partners and regulators require in many places: ISO 20022 payment messages, UBL e-invoicing, SAML for single sign-on, office documents, a lot of government reporting.

Then, if they want more

So the question is not how to get rid of XML, but where to keep it. My answer is at the edges. Adapters validate incoming XML against the official schemas and translate it into our internal model, JSON or Avro or Protobuf, and produce XML on the way out.

Internal services never parse XML, so XML skills and XML security settings are needed in only a few places.

Keeping it has a cost that I would budget for openly: patching parsers and SOAP or SAML libraries, upgrade work like the JAXB to Jakarta change, and the fact that fewer engineers know XSD, XSLT and namespaces, so we need training, pairing and tests.

I would retire SOAP integrations where the partner offers REST, ideally when the integration needs to change anyway, but I would not rewrite a stable XSLT pipeline just because it is old. And I would keep the best thing XML taught us, schema-first contracts with validation, using OpenAPI, JSON Schema and a schema registry for Avro or Protobuf.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "XML dominated enterprise integration in the 2000s (SOAP, WS-*, XSLT pipelines) and JSON...": https://scrivio-interview-library.netlify.app/java/xml-processing/d1c020b5b1/