Log in
Model

Element

Magento\Shipping\Model\Simplexml\Element

What it does

This class extends Magento's base SimpleXML Element to provide enhanced XML handling specifically for shipping data.

It automatically sanitizes attribute and child element values by converting special characters to XML entities, preventing XML parsing errors when building shipping carrier requests or responses.

Developers use this when working with shipping carrier integrations that require XML data exchange.

Public Methods

  • addAttribute()
  • addChild()
  • xmlentities()